package com.huike.game.base;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.List;

public class Game15 {


    private List<DataBean> data;

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    @DatabaseTable(tableName = "account")
    public static class DataBean {
        /**
         * id : 1
         * image : https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1579250090634&di=a1da1a7a0fb886d7ae5b0b6094adb7f1&imgtype=0&src=http%3A%2F%2Fpic1.16pic.com%2F00%2F24%2F46%2F16pic_2446608_b.jpg
         * carNumber : 辽A10001
         * carName : 张三
         * balance : 100
         */

        private String id;
        private String image;
        @DatabaseField(columnName = "carNumber")
        private String carNumber;
        @DatabaseField(columnName = "carName")
        private String carName;
        private String balance;

        @DatabaseField(columnName = "time")
        private Long time;
        @DatabaseField(columnName = "price")
        private String price;
        @DatabaseField(columnName = "lastPrice")
        private String lastPrice;
        private Boolean isCheck  = false;

        public Boolean getCheck() {
            return isCheck;
        }

        public void setCheck(Boolean check) {
            isCheck = check;
        }

        public DataBean() {
        }

        public DataBean(String id, String image, String carNumber, String carName, String balance,Boolean isCheck) {
            this.id = id;
            this.image = image;
            this.carNumber = carNumber;
            this.carName = carName;
            this.balance = balance;
            this.isCheck = isCheck;
        }

        public DataBean(String id, String image, String carNumber, String carName, String balance) {
            this.id = id;
            this.image = image;
            this.carNumber = carNumber;
            this.carName = carName;
            this.balance = balance;
        }


//        保存SQlite
        public DataBean(String carNumber, String carName, Long time, String price, String lastPrice) {
            this.carNumber = carNumber;
            this.carName = carName;
            this.time = time;
            this.price = price;
            this.lastPrice = lastPrice;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getCarNumber() {
            return carNumber;
        }

        public void setCarNumber(String carNumber) {
            this.carNumber = carNumber;
        }

        public String getCarName() {
            return carName;
        }

        public void setCarName(String carName) {
            this.carName = carName;
        }

        public String getBalance() {
            return balance;
        }

        public void setBalance(String balance) {
            this.balance = balance;
        }

        public Long getTime() {
            return time;
        }

        public void setTime(Long time) {
            this.time = time;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getLastPrice() {
            return lastPrice;
        }

        public void setLastPrice(String lastPrice) {
            this.lastPrice = lastPrice;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id='" + id + '\'' +
                    ", image='" + image + '\'' +
                    ", carNumber='" + carNumber + '\'' +
                    ", carName='" + carName + '\'' +
                    ", balance='" + balance + '\'' +
                    ", time=" + time +
                    ", price='" + price + '\'' +
                    ", lastPrice='" + lastPrice + '\'' +
                    ", isCheck=" + isCheck +
                    '}';
        }
    }
}
